package cap3;

import java.awt.Color;

public class tester1 {
	public static void main(String[] args) {
		
	}
	
	public static void tester1() {
		Color C1,C2;
		Borde B1,B2;

		C1 = new Color(110, 110, 110);
		C2 = new Color(110, 110, 110);
		B1 = new Borde(1,C1);
		B2 = new Borde(1,C2);

		System.out.println( C1 == C2);
		System.out.println( B1 == B2);
		System.out.println( C1.equals(C2));
		System.out.println(B1.equals(B2));
	}
	
	public static void tester2() {
		Color C1,C2;
		Borde B1,B2,B3,B4;
		C1 = new Color(110, 110, 110);
		C2 = new Color(110, 110, 110);
		B1 = new Borde(1,C1);
		B2 = new Borde(1,C2);
		//B3 = (Borde) B2.clone();
		B4 = new Borde (B2.obtenerGrosor(),B2.obtenerColor());
		//medadB1.copy(B2);

		System.out.println( B2 == B1);
		System.out.println( B2 == B3);
		System.out.println( B2 == B4);
		System.out.println(B2.equals(B1));
		System.out.println(B2.equals(B3));
		System.out.println(B2.equals(B4));
		System.out.println(B2.obtenerGrosor() == B1.obtenerGrosor() & 
		                   B2.obtenerColor() == B1.obtenerColor());
		System.out.println(B2.obtenerGrosor() == B3.obtenerGrosor() & 
		                   B2.obtenerColor() == B3.obtenerColor());
		System.out.println(B2.obtenerGrosor() == B4.obtenerGrosor() & 
		                   B2.obtenerColor() == B4.obtenerColor());
		System.out.println(B2.obtenerGrosor() == B1.obtenerGrosor() & 
		                   B2.obtenerColor().equals(B1.obtenerColor()));
		System.out.println(B2.obtenerGrosor() == B3.obtenerGrosor() & 
		                   B2.obtenerColor().equals(B3.obtenerColor()));
		System.out.println(B2.obtenerGrosor() == B4.obtenerGrosor() & 
		                   B2.obtenerColor().equals(B4.obtenerColor()));
	}
}
